package com.zxn.rv.application;

import android.app.Application;
import android.content.Context;

import com.lzf.easyfloat.EasyFloat;

/**
 * @author: njb
 * @date: 2020/2/28 0028 12:35
 * @desc:
 */
public class App extends Application {
    //全局Context
    private static Context sContext;

    @Override
    public void onCreate() {
        super.onCreate();
        sContext = getApplicationContext();
        //初始化悬浮窗
        initEasyFloat();
    }

    private void initEasyFloat() {
        EasyFloat.init(this);
    }


    public static Context getContext() {
        return sContext;
    }
}
